Repository navigation
docs(readme): clicking the hero clip plays the film instead of downloading the app - #8835
Conversation
|
The hero's download link came in with 84ff7d7 (#8442, "docs(readme): lead with what HyperFrames makes, keep every developer section"), whose description says "clicking it opens the download page". That page starts the download, so a click meant to play the clip downloaded the app. GitHub's rendering of |
jrusso1020
left a comment
There was a problem hiding this comment.
Review at 335d1949: APPROVE.
- One
hrefchanges inREADME.md: a click on the hero now opens the film in the browser instead of/studio/download?src=github-readme-hero. The image, the alt text and both "download" text links are unchanged. - I checked the new target:
https://static.heygen.ai/hyperframes-oss/site/studio-launch-nib-sf-audio.mp4answers200,content-type: video/mp4, 20.6 MB, with nocontent-disposition, so browsers play it in place. It is the same filedocs/snippets/film-rows.jsxuses for the Studio launch film (${CDN}/site/studio-launch-nib-sf-audio). - This is a docs link change with no code, so a "fails without the fix" test does not apply.
- Nit: an 80 s, 20 MB file opens raw in the tab. A docs or showcase page with the player would show the film with context, but the raw file is fine for now.
Need · Size · Reuse · Simpler · Structure: stops hero clicks from starting an installer download · one line · reuses the docs' launch film · nothing simpler · n/a.
Risk: very low. Only where a README link points changes.
— Rames
What
Clicking the README's hero clip opens the film it comes from, "Introducing HyperFrames Studio", in the browser. It used to link to the app download page, so a click meant to play the video started the installer download instead. The "Download the app" text link and the Studio row's download link stay as they are.
Why
The hero looks like a video, so people click it to watch. Since #8442 (84ff7d7) the click went to
/studio/download?src=github-readme-hero, which starts the download for a visitor's platform. The download now stays behind the links that say "download".Related work
Refs #8442, which added the hero clip and its link.
How
One link in
README.md: the hero's<a href>now points atsite/studio-launch-nib-sf-audio.mp4on the same CDN as the hero image. The docs' showcase (docs/snippets/film-rows.jsx) opens the same file as the full Studio launch film with sound. It is 80.8 s, 1920x1080 H.264 with AAC audio, and is served without a download header, so browsers play it in place. Its frames match the hero's: the "Let's make a launch video" prompt and the editable timeline.No visible change
The README renders the same. Only where a click on the hero image goes changes.
Test plan
video/mp4with nocontent-disposition, andffprobereads one H.264 1920x1080 video stream and one AAC audio stream.git grep github-readme-herofinds nothing else that depends on the old link.